import instance from './index'

/**
 * 获取建筑物年数据
 * @param params
 * @returns {AxiosPromise<any>}
 */
export const getBuildingYear = (params={}) => {
  const param = {
    "DataType" : "dataBigScreen_getInfoNum"

  }
  return instance.post('', param)
}

/**
 * 获取地图信息
 * @param params
 * @returns {AxiosPromise<any>}
 */
export const getMapData = (params={}) => {
  const param = {
    "DataType" : "dataBigScreen_getProjectList"

  }
  return instance.post('', param)
}


/**
 * 获取报警信息
 * @param params
 * @returns {AxiosPromise<any>}
 */
export const getAlarmData = (params={}) => {
  const param = {
    "DataType" : "dataBigScreen_getAlarm",
    "PageNo":params.pageNo,
    "PageSize":5
  }
  return instance.post('', param)
}


/**
 * 获取异常信息
 * @param params
 * @returns {AxiosPromise<any>}
 */
export const getWarnData = (params={}) => {
  const param = {
    "DataType" : "dataBigScreen_getExce",
    "PageNo":params.pageNo,
    "PageSize":5
  }
  return instance.post('', param)
}
